﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CustomsDocumentOA.Project.CusDocument
{
    //*********************************************
    //
    //数据表（CDOA_Customer）：客户基本信息表
    //
    //作者：陈辉平
    //
    //日期（CreateDate）：2021-03-15
    //
    //*********************************************
    [Table("CDOA_Customer")]
    public class CDOA_Customer : Entity<long>, IHasCreationTime, ICreationAudited
    {
        /// <summary>
        /// 企业名称
        /// </summary>
        [MaxLength(100)]
        [Required]
        public string cCustomerName { get; set; }
        /// <summary>
        /// 企业地址
        /// </summary>
        [MaxLength(200)]
        [Required]
        public string cAddress { get; set; }
        /// <summary>
        /// 企业法人
        /// </summary>
        [MaxLength(20)]
        public string cBoss { get; set; }
        /// <summary>
        /// 企业代码
        /// </summary>
        [MaxLength(36)]
        public string cCode { get; set; }
        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime? cEstablishTime { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(1000)]
        public string cDescribe { get; set; }
        /// <summary>
        /// 创建时间，接口
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 创建人，接口
        /// </summary>
        public long? CreatorUserId { get; set; }

        //自增ID创建方法，继承--Entity<Guid>--Entity<long>即可
        //[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //public int CustomID { get; set; }
    }
}
